{% set company = frappe.get_doc("Company", doc.company) %}
{% set company_address_name = frappe.db.get_value("Dynamic Link", filters={"link_doctype": "Company", "link_name": doc.company, "parenttype": "Address"}, fieldname="parent") %}
{% set address = frappe.get_doc("Address", company_address_name) if company_address_name else None %}

<table class="footer-table">
    <tbody>
        <tr>
            <td>{{ company.company_name }}</td>
            <td>{{ _("Managing Directors") }}:</td>
            <td>Berliner Volksbank</td> <!-- Your company's bank name -->
        </tr>
        <tr>
            <td>{% if address %}{{ address.address_line1 }} &#183; {{ address.pincode }} {{ address.city }}{% endif %}</td>
            <td>Max Muster</td> <!-- Your company's managing directors -->
            <td>{{ _("IBAN") }}: DE88 1009 0000 1234 5678 92</td>
        </tr>
        <tr>
            <td>{{ _("Phone") }}: {{ company.phone_no }}</td>
            <td>{{ _("Tax ID") }}.: {{ company.tax_id }}</td>
            <td>{{ _("BIC") }}: BEVODEBB</td> <!-- Your company's BIC -->
        </tr>
        <tr>
            <td>{{ _("Email") }}: {{ company.email }}</td>
            <td>Amtsgericht Berlin</td> <!-- Your company's register court -->
            <td></td>
            <td></td>
        </tr>
        <tr>
            <td>{{ company.website }}</td>
            <td>{{ _("Trade Register Number") }}: HRB 11235</td> <!-- Your company's trade register number -->
            <td></td>
            <td></td>
        </tr>
    </tbody>
</table>

<style>
    .footer-table tbody tr td:not(:last-child) {
        padding: 0 65px 0 0 !important;
    }

    .footer-table tbody tr td:last-child {
        padding: 0 !important;
    }

    .footer-table {
        font-size: 7pt;
    }
</style>
